/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.feedback.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;

/**
 * 反馈建议Entity
 * @author LVH
 * @version 2016-07-12
 */
public class Feedback extends DataEntity<Feedback> {

    private static final long serialVersionUID = 1L;

    private String type; // 反馈类型 advice：建议

    private String content; // 反馈内容

    private String state; // 回复状态

    private Long institutionId; // 机构ID

    private String userName; // 机构ID

    private String description;// 反馈描述

    private String code;// 反馈枚举值

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUserName() {

        return userName;
    }

    public void setUserName(String userName) {

        this.userName = userName;
    }

    public Feedback() {
        super();
    }

    public Feedback(String id) {
        super(id);
    }

    public String getType() {

        return type;
    }

    public void setType(String type) {

        this.type = type;
    }

    @Length(min = 1, max = 1000, message = "反馈内容长度必须介于 1 和 1000 之间")
    public String getContent() {

        return content;
    }

    public void setContent(String content) {

        this.content = content;
    }

    public String getState() {

        return state;
    }

    public void setState(String state) {

        this.state = state;
    }

    @NotNull(message = "机构ID不能为空")
    public Long getInstitutionId() {

        return institutionId;
    }

    public void setInstitutionId(Long institutionId) {

        this.institutionId = institutionId;
    }

}